package 行为型模式.状态模式.before;

/**
 * @Description TODO
 * @Author shallow
 * @Date 2023/3/8 13:34
 */

public class test {
    public static void main(String[] args) {
        Lift lift = new Lift();
        lift.setState(ILift.CLOSING_STATE);
        //开门
        lift.open();
        lift.run();
        lift.close();
        lift.stop();
    }
}
